package com.gzgy.ustore.api.common.exception;


public  class BaseAPIException extends RuntimeException {

	private static final long serialVersionUID = -7065579710316348767L;

	private int errorCode = ExceptionCodeStatusEnum.FAILED_STATUS.toInt();

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
	public int getErrorCode() {
		return errorCode;
	}

	public BaseAPIException() {
		super();
	}

	public BaseAPIException(String message, Throwable cause) {
		super(message, cause);
	}

	public BaseAPIException(String message) {
		super(message);
	}
	public BaseAPIException(String message,Integer errorCode) {
		super(message);
		setErrorCode(errorCode);
	}

	public BaseAPIException(Throwable cause) {
		super(cause);
	}

}
